package com.bandit.utils;

import com.bandit.pojo.Message;

import java.util.HashMap;
import java.util.List;


public class LayResult extends HashMap<String, Object> {

    private static final long serialVersionUID = 1L;

    /** 状态码 */
    public static final String CODE_TAG = "code";

    /** 数量 */
    public static final String COUNT_TAG = "count";

    /** 返回内容 */
    public static final String MSG_TAG = "msg";

    /** 数据对象 */
    public static final String DATA_TAG = "data";

    public LayResult() {
        super.put(CODE_TAG,0);
    }

    public LayResult(int count) {
        super.put(CODE_TAG,0);
        super.put(COUNT_TAG,count);
    }

    public LayResult(int code,int count) {
        super.put(CODE_TAG,code);
        super.put(COUNT_TAG,count);
    }

    @Override
    public LayResult put(String key, Object value)
    {
        super.put(key, value);
        return this;
    }


}
